home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•Interesting Stuff•
/
Warp Speed v1.1 •••
/
card_2946.txt
< prev
next >
Wrap
Text File
|
1990-10-01
|
13KB
|
547 lines
-- card: 2946 from stack: in.1 •••
-- bmap block id: 3076
-- flags: 4000
-- background id: 2602
-- name: Warp Speed Calculator
----- HyperTalk script -----
on ComputeWarp speedButton
set the hilite of button "Warp 1" to false
set the hilite of button "Warp 2" to false
set the hilite of button "Warp 3" to false
set the hilite of button "Warp 4" to false
set the hilite of button "Warp 5" to false
set the hilite of button "Warp 6" to false
set the hilite of button "Warp 7" to false
set the hilite of button "Warp 8" to false
set the hilite of button "Warp 9" to false
set the hilite of button "Warp 9.6" to false
set the hilite of button "Warp 9.9" to false
set the hilite of card button speedButton to true
set the numberFormat to "0.##############"
put 60 into AMinuet
put (AMinuet * 60) into AnHour
put (AnHour * 24) into ADay
put (ADay * 365) into AYear
put word 2 of speedButton into WarpSpeed
if the hilite of card button "NCC-1701" is TRUE then
-- the orriginal Enterprise (NCC-1701)
if WarpSpeed is 1 then
put 1 into WarpFactor
else
if WarpSpeed is 2 then
put 8 into WarpFactor
else
if WarpSpeed is 3 then
put 27 into WarpFactor
else
if WarpSpeed is 4 then
put 64 into WarpFactor
else
if WarpSpeed is 5 then
put 125 into WarpFactor
else
if WarpSpeed is 6 then
put 216 into WarpFactor
else
if WarpSpeed is 7 then
put 343 into WarpFactor
else
if WarpSpeed is 8 then
put 512 into WarpFactor
else
if WarpSpeed is 9 then
put 729 into WarpFactor
else
put EMPTY into WarpFactor
play boing
answer "Captain, she can't go that fast!"
end if
end if
end if
end if
end if
end if
end if
end if
end if
else -- else must be the new Enterprise (NCC-1701-D)
if WarpSpeed is 1 then
put 1 into WarpFactor
else
if WarpSpeed is 2 then
put 10 into WarpFactor
else
if WarpSpeed is 3 then
put 39 into WarpFactor
else
if WarpSpeed is 4 then
put 102 into WarpFactor
else
if WarpSpeed is 5 then
put 214 into WarpFactor
else
if WarpSpeed is 6 then
put 392 into WarpFactor
else
if WarpSpeed is 7 then
put 656 into WarpFactor
else
if WarpSpeed is 8 then
put 1024 into WarpFactor
else
if WarpSpeed is 9 then
put 1516 into WarpFactor
else
if WarpSpeed is 9.6 then
put 1909 into WarpFactor
else
put 3503 into WarpFactor
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
if WarpFactor is not EMPTY then
put (card field LightYears * 186000 * AYear) into Miles
if hilite of card button ParSecs is TRUE then
put (Miles * 3.26) into Miles
end if
put (Miles / (186000 * WarpFactor)) into TravelTimeInSeconds
put trunc (TravelTimeInSeconds / AYear) into card field WarpYears
put (TravelTimeInSeconds mod AYear) into WarpYearsRmdr
put trunc (WarpYearsRmdr / ADay) into card field WarpDays
put (WarpYearsRmdr mod ADay) into WarpDaysRmdr
put trunc (WarpDaysRmdr / AnHour) into card field WarpHours
put (WarpDaysRmdr mod AnHour) into WarpHoursRmdr
put trunc (WarpHoursRmdr / AMinuet) into card field WarpMinuets
put trunc (WarpHoursRmdr mod AMinuet) into card field WarpSeconds
end if
end ComputeWarp
-- part 1 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=36 right=58 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 1
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=61 right=83 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 2
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=86 right=108 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 3
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=111 right=133 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 4
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: C006
-- rect: left=395 top=136 right=158 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 5
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=161 right=183 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 6
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=186 right=208 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 7
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 8 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=211 right=233 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 8
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=236 right=258 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 9
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 15 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=164 top=89 right=108 bottom=238
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: LightYears
-- part 17 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=122 top=162 right=181 bottom=171
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: WarpDays
-- part 18 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=175 top=162 right=181 bottom=224
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: WarpHours
-- part 19 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=227 top=162 right=181 bottom=276
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: WarpMinuets
-- part 20 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=280 top=162 right=181 bottom=329
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: WarpSeconds
-- part 21 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=69 top=162 right=181 bottom=118
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: WarpYears
-- part 23 (button)
-- low flags: 00
-- high flags: C006
-- rect: left=115 top=111 right=128 bottom=205
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: LightYears
----- HyperTalk script -----
on mouseUp
set the hilite of me to TRUE
set the hilite of card button Parsecs to FALSE
end mouseUp
-- part 24 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=215 top=111 right=128 bottom=289
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Parsecs
----- HyperTalk script -----
on mouseUp
set the hilite of me to TRUE
set the hilite of card button LightYears to FALSE
end mouseUp
-- part 25 (button)
-- low flags: 00
-- high flags: 2004
-- rect: left=13 top=71 right=109 bottom=53
-- title width / last selected line: 0
-- icon id / first selected line: 1 / 1
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Information
----- HyperTalk script -----
on mouseUp
visual effect iris open
go to card "Information"
end mouseUp
-- part 26 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=285 right=307 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 9.9
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 27 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=395 top=261 right=283 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Warp 9.6
----- HyperTalk script -----
on mouseUp
ComputeWarp the short name of me
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: 8006
-- rect: left=110 top=46 right=65 bottom=194
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: NCC-1701
----- HyperTalk script -----
on mouseUp
set the hilite of me to TRUE
set the hilite of card button "NCC-1701-D" to FALSE
end mouseUp
-- part 29 (button)
-- low flags: 00
-- high flags: C006
-- rect: left=214 top=46 right=65 bottom=317
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: NCC-1701-D
----- HyperTalk script -----
on mouseUp
set the hilite of me to TRUE
set the hilite of card button "NCC-1701" to FALSE
end mouseUp
-- part contents for card part 15
----- text -----
500
-- part contents for card part 17
----- text -----
122
-- part contents for card part 18
----- text -----
19
-- part contents for card part 19
----- text -----
17
-- part contents for card part 20
----- text -----
22
-- part contents for card part 21
----- text -----
2